POV-Ray : Newsgroups : povray.beta-test : Functions more than 65535 : Re: Functions more than 65535 Server Time
29 Jul 2024 18:24:14 EDT (-0400)
  Re: Functions more than 65535  
From: Christoph Hormann
Date: 12 May 2002 17:58:24
Message: <3CDEE57F.29ECF6D5@gmx.de>
Thorsten Froehlich wrote:
> 
> In article <3CDEDA2C.8504C17C@gmx.de> , Christoph Hormann
> <chr### [at] gmxde>  wrote:
> 
> > I'm not sure what you mean by 'sum' function
> 
> For example allowing functions equivalent to
> 
> 10
> ---
> \
>  >  i*2+4
> /
> ---
> i=1
> 
> inside functions, would that help?
> 

That would be nice but it would not help much in this particular case and
is in fact not necessary since this can already be done using #while
inside functions.  In the example i gave i could have put a 'function {}'
around the while loop, leave out the #declare's and just sum up things
with the loop, this would avoid the recursion problem, but this does not
work if you build several functions in the while loop and don't want to
split into separate loops for speed reasons.

Christoph

-- 
POV-Ray tutorials, IsoWood include,                 
TransSkin and more: http://www.tu-bs.de/~y0013390/  
Last updated 05 May. 2002 _____./\/^>_*_<^\/\.______


Post a reply to this message

Copyright 2003-2023 Persistence of Vision Raytracer Pty. Ltd.